package com.bby.disk.service;

import com.bby.common.exception.BBYException;
import com.bby.disk.bean.req.ThumbnailReq;
import com.bby.disk.manager.download.DirectLinkResult;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

public interface IDownloadService {

    DirectLinkResult createDirectLink(String userId, String target) throws BBYException;

    void imgView(ThumbnailReq req) throws Exception;


    void getAvatar(String avatar, HttpServletResponse response);

    void download(String fileId, String directId) throws Exception;

    void video(String fileId, String directId) throws BBYException;

    Map<String,DirectLinkResult> createDirectLinks(String userId, List<String> fileList) throws BBYException;

    @Deprecated
    void viewVideoImg(String fileId, String directId) throws Exception;
    @Deprecated
    Map<String,DirectLinkResult> createVideoImg(String userId, List<String> targets);

}
